package com.kedacom.demo.modb.weibo.rabbitmq;

import org.junit.After;
import org.junit.Test;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class WeiboPrivateRabbitMQ {

	private ConfigurableApplicationContext context;

	public static void main(String[] args) {
		new WeiboPrivateRabbitMQ().run();
	}

	@Test
	public void run() {
		context = new ClassPathXmlApplicationContext("classpath:/applicationContext.xml");
	}

	@After
	public void close() {
		if (context != null) {
			context.close();
		}
	}

}
